package itsm.isperp.module.repository.bpm;

import itsm.isperp.framework.data.mybatis.dao.CUDMapper;
import itsm.isperp.module.entity.bpm.BpmNodeUser;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * 
 * 流程节点数据库映射操作
 * 
 * @author lizx
 * @date 2013-7-3
 * 
 */
@Repository
public interface BpmNodeUserMapper extends CUDMapper<BpmNodeUser> {

	public List<BpmNodeUser> findAllByNodeSettingId(String bpmNodeSettingId);

	public List<BpmNodeUser> findAllByDefIdAndNodeId(
			@Param("defId") String defId, @Param("nodeId") String nodeId);

	/**
	 * 根据id获取符合的项目域字段以及其实体
	 * 
	 * @param id
	 *            节点id
	 * @return 结果
	 */
	Map<String, Object> findDbEntityWithDomainFieldByNodeId(
			@Param("nodeId") String nodeId);

}
